package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2021/3/1
 * Time: 15:04
 * Description:
 */
@Data
@TableName("t_item_show_order")
@ApiModel(value = "TItemShowOrderEntity", description = "数据库-项目展示订单表")
public class TItemShowOrderEntity extends AbstractPageEntity {
    @TableId(value = "show_order_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String showOrderId;

    @TableField("user_id")
    @ApiModelProperty(value = "用户id", dataType = "String", notes = "用户id")
    private String userId;

    @TableField("business_id")
    @ApiModelProperty(value = "业务id", dataType = "String", notes = "业务id")
    private String businessId;

    @TableField("show_type")
    @ApiModelProperty(value = "业务类型码值，轮播10009001，固定头条10009002", dataType = "String", notes = "业务类型码值，轮播10009001，固定头条10009002")
    private String showType;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;

    @TableField("pay_time")
    @ApiModelProperty(value = "支付时间", dataType = "Date", notes = "支付时间")
    private Date payTime;

    @TableField("show_times_count")
    @ApiModelProperty(value = "展示次数，首页轮播展示时使用", dataType = "Integer", notes = "展示次数，首页轮播展示时使用")
    private Integer showTimesCount;

    @TableField("show_days_count")
    @ApiModelProperty(value = "展示天数，固定头条时使用", dataType = "Integer", notes = "展示天数，固定头条时使用")
    private Integer showDaysCount;

    @TableField("show_start_time")
    @ApiModelProperty(value = "开始展示时间，固定头条时使用", dataType = "Date", notes = "开始展示时间，固定头条时使用")
    private Date showStartTime;

    @TableField("show_end_time")
    @ApiModelProperty(value = "结束展示时间，固定头条时使用", dataType = "Date", notes = "结束展示时间，固定头条时使用")
    private Date showEndTime;

    @TableField("status")
    @ApiModelProperty(value = "展示状态，0：正常 1：禁用", dataType = "String", notes = "展示状态，0：正常 1：禁用")
    private String status;

    @TableField("pay_amount")
    @ApiModelProperty(value = "支付金币金额", dataType = "BigDecimal", notes = "支付金币金额")
    private BigDecimal payAmount;

    @TableField("recharge_status_type")
    @ApiModelProperty(value = "支付订单状态码值", dataType = "String", notes = "支付订单状态码值")
    private String rechargeStatusType;

    @TableField(exist = false)
    @ApiModelProperty(value = "项目实体", dataType = "TUserItemEntity", notes = "项目实体")
    private TUserItemEntity itemEntity;
}
